<template>
    <div class="wrap">
        <div>
           <Header></Header>
        </div>
          <div class="main">
            <div class="mainleft">
             <router-link to="/home/list">订单列表</router-link>
             <router-link to="/home/huo">确认收货</router-link>
            </div>
            <div class="mainright">
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import Header from '../../components/Header.vue'
@Component({
    components:{
      Header
    }
})
export default class Home extends Vue {
    
}
</script>

<style>
*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}
  html,body,#app{
      width: 100%;
      height: 100%;
  }
  .wrap{
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      overflow: hidden;
  }
  .header{
      width: 100%;
      height: 50px;
      background: #595e6c;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      
  }
 .header a,p{
     /* width: 26%;
     height: 100%; */
    color: #fff;
  }
.link {
    width: 60px;
    height: 100%;
    line-height: 60px;
    background: #828690;
    text-align: center;
  }
   .main{
      flex: 1;
      display: flex;
      /* align-items: center; */
  }
  .mainleft{
      width: 10%;
      height: 100%;
      border-right: solid 1px #ccc;
      display: flex;
      flex-direction: column;
  }
  .mainleft a{
      width: 100%;
      line-height: 60px;
      /* background: chocolate; */
      margin-top: 5px;
      text-align: center;
  }
  .mainright{
      flex: 1;
  }

</style>